package com.wuster.constant;

import java.util.regex.Pattern;

/**
 * ClassName: CategoryState
 * Package: com.wuster.constant
 * Description: TODO
 *
 * @Author VictoriaZhou
 * @Create 2024/7/7 18:07
 * @Version 1.0
 */
public class CategoryConstant {
    //商品未分类状态的CategoryId
    public static final Integer NO_CATEGORY= 0;

    //分类名称的格式要求：分类名称只能包含中文、数字、英文、空格、下划线和引号，且长度不超过六个字符
    public static final Pattern CATEGORY_NAME_PATTERN = Pattern.compile("^[\\w\\u4e00-\\u9fa5\\s\"']{1,6}$");
}
